#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__

#include "cocos2d.h"
#include "ui/CocosGUI.h"
#include "Model.h"

class HelloWorld : public cocos2d::Layer
{
public:
    static cocos2d::Scene* createScene();
    virtual bool init();
    CREATE_FUNC(HelloWorld);

private:
	void initUI();
	void initDrawNode();
	void drawMap();

	void onTouchPanel(cocos2d::Vec2);
	void astarSearch();

private:
	cocos2d::DrawNode *drawNode;
	cocos2d::ui::Layout *drawPanel;

	enum State
	{
		NONE,
		SET_START_POINT,
		SET_END_POINT,
		SET_BARRIER,
	};

	Model model;
	int state;
};

#endif // __HELLOWORLD_SCENE_H__
